import axios from './interceptor'
// 推送消息
const postMessage = (message: string, username: string, email: string) => {
  return axios.post(`/message`, {
    message,
    username,
    email,
  })
}
// 请求数据
const getMessage = () => {
  return axios.get('/message?page=1&limit=200')
}

export { postMessage, getMessage }
